<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul>
        <li>11111</li>
        <li>22222</li>
        <li>33333</li>
    </ul>
    <script src="./js/jquery-1.12.4.js"></script>
    <script>
        $(function(){

            // ul 会被删掉
            //$("ul").remove();

            // <ul> 标签会保留
            // $("ul").empty();
            $("li").each(function(index,element){
                console.log(index);
                // element 原生对象
                // $(element) 把原生对象转换为jquery对象，从而使用jquery提供的函数
                // console.log(element.html()); // 报错 element.html is not a function
                // console.log(element.innerHTML);
                // console.log($(element).html());
                
                console.log("----------------------");
            })
        })
    </script>
</body>
</html>